package com.googlecode.sca4idea;

import com.intellij.javaee.ResourceRegistrar;
import com.intellij.javaee.StandardResourceProvider;

/**
 * $Id: SCASchemaProvider.java 45 2009-11-22 16:28:40Z ak.lynch $
 *
 * @author andy
 */
public class SCASchemaProvider implements StandardResourceProvider {
    enum SCASchemas {
        SCA("http://www.osoa.org/xmlns/sca/1.0", "/com/googlecode/sca4idea/xsd/sca.xsd");
        private String namespace;
        private String resourceName;

        SCASchemas(String namespace, String resourceName) {
            this.namespace = namespace;
            this.resourceName = resourceName;
        }
    }

    public void registerResources(ResourceRegistrar registrar) {
        registrar.addStdResource(
                SCASchemas.SCA.namespace,
                SCASchemas.SCA.resourceName,
                getClass());
    }

}

